From: Florian Müllner Date: Wed, 15 Nov 2017 17:15:49 +0000 (+0000) Subject: overviewControls: Shift up on double-super X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~616^2^2~222 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=f28f7eddb10566c94339e86980bb3af87a630e6f;p=gnome-shell.git overviewControls: Shift up on double-super Right now a second super press during the overview transition hides the overview again. Change that behavior to shift up to the app grid instead, which is more useful. Part-of: --- diff --git a/js/ui/overviewControls.js b/js/ui/overviewControls.js index 3116df487..d595facae 100644 --- a/js/ui/overviewControls.js +++ b/js/ui/overviewControls.js @@ -371,7 +371,13 @@ class ControlsManager extends St.Widget { if (this._a11ySettings.get_boolean('stickykeys-enable')) return; - Main.overview.toggle(); + const { initialState, finalState, transitioning } = + this._stateAdjustment.getStateTransitionParams(); + + if (transitioning && finalState > initialState) + this._shiftState(Meta.MotionDirection.UP); + else + Main.overview.toggle(); }); Main.wm.addKeybinding(